<extend name="Public/base"/>
<block name="head">
	 <link rel="stylesheet" type="text/css" href="__CSS__/list.css">
	 <link rel="stylesheet" type="text/css" href="__CSS__/user.css">
</block>
<block name="body">

 	<div class="container">
 		<div class="row">
 			<div class="col-md-2">
          	   <include file="Public:usernav"/>
       		</div>
       		<div class="col-md-10">
		        <ul class="goods-list clear">
		            <volist name='goods' id='vo'>
		            <li class="list-unstyled">
		                <div class="item">
		                    <div class="goods-pic">
		            
		                        <if condition="$config.SHOW_GOODS_DETAIL gt 0">
		                        	<a target="_blank" class="pic-img" href="{$vo.url}">
		                            	<img class="lazy img-responsive" src="{$vo.pic_url}" alt="{$vo.name}" style="display: inline;">
		                       		</a>
		                       	<else/>
		                       		<notempty name="vo.click_url">
			                    		
			                       		 <a class="pic-img"  href="{$goods['click_url']}" target="_blank">
			                           		 <img class="lazy img-responsive" src="{$vo.pic_url}" alt="{$vo.name}" style="display: inline;">
		                       			 </a>
			                        <else/>
			                        	<a  biz-itemid="{$vo['num_iid']}" isconvert=1 href="{$vo['item_url']}" target="_blank">
			                        	    <img class="lazy img-responsive" src="{$vo.pic_url}" alt="{$vo.name}" style="display: inline;">
		                 	      		</a>
			                    	</notempty>
		                        </if>
		                        
		                    </div>
		                    
		                    <h5 class="title">
		                    	<if condition="$config.SHOW_GOODS_DETAIL gt 0">
		                        	<a target="_blank" class="black" href="{$vo.url}">{$vo.name}</a>
		                       	<else/>
		                       		<notempty name="vo.click_url">
			                    		<a class="black"  href="{$goods['click_url']}" target="_blank">{$vo.name}</a>
			                        <else/>
			                        	<a  biz-itemid="{$vo['num_iid']}" isconvert=1 href="{$vo['item_url']}" target="_blank">{$vo.name}</a>
			                    	</notempty>
		                        </if>
		                       
		                    </h5>
		                    <div class="goods-price">
		                        <span class="price-current">
		                            <em>￥</em>{$vo['price']}
		                        </span>
		                        <span class="des-other">
		                            <del>
		                                <em>￥</em>
		                                {$vo['market_price']}
		                            </del>
		                            
		                        </span>
		                        <span style="padding-left:10px;">
		                        	月销:{$vo['volume']}
		                        </span>
		                       
		                    </div>
		                    <!-- like -->
		                    <a href="javascript:;" data-title="{$vo.name}" onclick="unfavor({$vo['id']})" data-key="" title="删除收藏" class="y-like my-like active">
		                        <i class="like-ico del-ico"><span class="heart_left"></span><span class="heart_right"></span></i>
		                    </a>
		                    <!-- end like -->
		                    <div style="display:block" class="box-hd">
		                    </div>
		                </div>
		            </li>
		        	</volist>
		        </ul>
		     </div>
        </div>
        <notempty name="_page">
    	 <div class="row">
	        	<div class="col-md-12">
	        		<nav>
					  <ul class="pagination">
					    {$_page}
					  </ul>
					</nav>
	            
	            </div>
	      </div>
    </notempty>
	</div>
  
    <script>
   
    $(".goods-list li").hover(
    function(){
       //当鼠标放上去的时候,程序处理
       $(this).addClass("hover1 hover");
    },
    function(){
       //当鼠标离开的时候,程序处理
       $(this).removeClass("hover1 hover");
    });	
    function unfavor(goodsid){
        $.get("{:U('ajax/unFavor')}",{id:goodsid},function(json){
                showmsg(json.info);
                setTimeout("window.location.reload()",1500);
        })    
    }

</script>
</block>
